[gd_scene load_steps=9 format=1]

[ext_resource path="res://scripts/asteroid.gd" type="Script" id=1]
[ext_resource path="res://scripts/shader/asteroid.tres" type="Shader" id=2]
[ext_resource path="res://images/asteroids/asteroid05_n.png" type="Texture" id=3]
[ext_resource path="res://images/asteroids/asteroid05_c.png" type="Texture" id=4]


[sub_resource type="ConvexPolygonShape2D" id=1]

custom_solver_bias = 0.0
points = Vector2Array( -60, -104, -104, -56, -108, -60, -96, -76, -76, -96 )

[sub_resource type="ConvexPolygonShape2D" id=2]

custom_solver_bias = 0.0
points = Vector2Array( 0, -124, 36, -112, 68, -96, 92, -72, 104, -52, 120, -20, 120, 8, 116, 40, 108, 60, 84, 92, 40, 116, -16, 120, -76, 92, -92, 76, -108, 52, -124, 12, -124, -8, -112, -48, -104, -56, -20, -124 )

[sub_resource type="ConvexPolygonShape2D" id=3]

custom_solver_bias = 0.0
points = Vector2Array( -60, -104, -20, -124, -104, -56 )

[sub_resource type="CanvasItemMaterial" id=4]

shader/shader = ExtResource( 2 )
shader/shading_mode = 0
shader_param/normal = ExtResource( 3 )

[node name="Asteroid" type="RigidBody2D"]

visibility/light_mask = 5
input/pickable = false
shapes/0/shape = SubResource( 1 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/0/trigger = false
shapes/1/shape = SubResource( 2 )
shapes/1/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/1/trigger = false
shapes/2/shape = SubResource( 3 )
shapes/2/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/2/trigger = false
collision/layers = 1
collision/mask = 1
mode = 0
mass = 100.0
friction = 1.0
bounce = 0.0
gravity_scale = 1.0
custom_integrator = true
continuous_cd = 0
contacts_reported = 0
contact_monitor = false
sleeping = false
can_sleep = true
velocity/linear = Vector2( 0, 0 )
velocity/angular = 0.0
damp_override/linear = -1.0
damp_override/angular = -1.0
script/script = ExtResource( 1 )
__meta__ = { "__editor_plugin_screen__":"Script" }

[node name="Sprite" type="Sprite" parent="."]

visibility/light_mask = 5
material/material = SubResource( 4 )
texture = ExtResource( 4 )

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]

visibility/visible = false
build_mode = 0
polygon = Vector2Array( -20, -124, 0, -124, 36, -112, 68, -96, 92, -72, 104, -52, 120, -20, 120, 8, 116, 40, 108, 60, 84, 92, 40, 116, -16, 120, -76, 92, -92, 76, -108, 52, -124, 12, -124, -8, -112, -48, -104, -56, -108, -60, -96, -76, -76, -96, -60, -104 )
shape_range = Vector2( 0, 2 )
trigger = false


